package com.onec.service.lock;

public class Job implements Runnable {

    private PrintQueue printQueue;

    public Job(PrintQueue printQueue) {
        this.printQueue = printQueue;
    }

    @Override
    public void run() {
        System.out.println("---->" + Thread.currentThread().getName());
        printQueue.printJob(new Object());
        System.out.println("---->" + Thread.currentThread().getName());
    }
}
